﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ImpactFactorEditor.ascx.cs"
    Inherits="Admin_LCAImpactFactor_Controls_ImpactFactorEditor" %> 
<%@ Register TagPrefix="uc" TagName="ImpactFactorModal"  Src="/Admin/LCAImpactFactor/Controls/ImpactFactorModal.ascx" %>

<h1>
    Manage Impact Factors</h1>
<div class="impact-factors formview">
    <div class="section">
        <div class="row">
            <div class="label">
                Factor</div>
            <div class="input">
                <asp:DropDownList runat="server" ID="ddlFactors" DataValueField="Id" DataTextField="Name"
                    OnSelectedIndexChanged="ddlFactors_SelectedIndexChanged" AutoPostBack="true" />
            </div>
        </div>
        <asp:PlaceHolder runat="server" ID="plhPleaseSelect" Visible="false">
            <div class="row">
                Please select factor to see the impact factors
            </div>
        </asp:PlaceHolder>
        <asp:PlaceHolder runat="server" ID="plhGrid" Visible="false">
            <div class="row grid-block">
                <div class="impact-factors-editor">
                    <asp:HyperLink ID="lnkAddIF" runat="server" ClientIDMode="Static"></asp:HyperLink>
                    <table id="gridImpactFactors" cellspacing="0" cellpadding="2" border="1" class="searchData"
                        style="border-collapse: collapse;">
                        <thead>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                    
                </div>
                <div style="margin-top: 5px;">
                    <asp:HyperLink ID="lnkAddIFBottom" runat="server" ClientIDMode="Static"></asp:HyperLink>
                </div>
                <div style="display: none;">
                    <asp:TextBox ID="txtImpactFactors" runat="server" ClientIDMode="Static"></asp:TextBox>
                </div>
                <div style="display: none;">
                    <a id="impact-factor-modal-caller" href="#impact-factor-modal"></a>
                </div>
                <div style="display: none;">
                    <uc:ImpactFactorModal runat="server" ID="ctlImpactFactorModal" />
                </div>
            </div>
            <div class="row">
                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" ClientIDMode="Static" />
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click"
                    CausesValidation="false" />
            </div>
        </asp:PlaceHolder>
        <div class="clear">
        </div>
    </div>
</div>
<script type="text/javascript" src="/Admin/Scripts/LCA/impact_factor_editor.js"></script>
